package project3;

/**This stores the relative frequenccy and absolute number of times
 * a stem occurs in a single document.
 *
 * Used by the document class, as a map from stem to Index Entry.
 */
public class IndexEntry
{
    /** number of times stem appears */
    public short count;

    /** frequency of stem appearance relative to other words in document */
    public float relativeFrequency;
    
    /** Builds an Index Entry
     */
    public IndexEntry(int termCount, double relativeFrequency)
    {
        this.count=(short)termCount;
        this.relativeFrequency=(float)relativeFrequency;
    }
}
